package com.lsege.mapper.backstage;

import com.lsege.entity.backstage.Indiana;
import com.lsege.entity.backstage.IndianaOrder;
import com.lsege.entity.backstage.Prize;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.security.SecureRandom;
import java.util.List;

/**
 * Created by Administrator on 2017/7/8.
 */
@Mapper
@Repository(value = "PrizeMapper")
public interface PrizeMapper {
//    Long queryPrizeByName(@Param("prizeName") String prizeName);
    void addPrizeInfo(Prize prize);
    List<Prize> queryPrizeList();
    Long queryPrizeCount();
    void deletePrize(@Param("prizeCode") String  prizeCode);
    Integer queryPrizeByCode(String prizeCode);
    void addIndianaCode(Indiana indiana );
    Long getPrizePrice(String prizeCode);
    void addIndiana(Indiana indiana);
    List<Prize> getIndianaList();
    Long getIndianaCount();
    List<IndianaOrder> getIndianaOrder();
    Long getIndianaOrderCount();
    void changeExpress(IndianaOrder indianaOrder);
    List<IndianaOrder> getIndianaOrderByCode(String orderCode);
    Long getIndianaOrderByCodeCount(String orderCode);
    void openPrizeTimes(Indiana indiana);
}
